import { http } from '@/http'

// import type { LoginInfoType } from '@/types/login'

/**
 * @description User login
 * @param {String} account Login account
 * @param {String} password Password
 * @returns
 */
export const onLogin = async (data: { isRoot: boolean, account: string; password: string }) => {
  return http.request('post', '/Tenant', {
    data
  })
}

/**
 * @description User logout
 * @param {String} logoutId Logout number
 * @returns
 */
export const onLogout = async () => {
  return http.request('post', '/api/Account/LoginOut')
}